<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller{
    public function _initialize(){
        if(!session('user')){
          //  $this->redirect("User/getOuthUserinfo");
        }
    }
    public function _empty(){
        $this->_404();
    }
    public function _404(){
       
    }
    public function ajaxReturn($status,$msg='',$data,$dialog=''){
        parent::ajaxReturn(array(
            'status'=>$status,
            'msg'=>$msg,
            'data'=>$data,
            'dialog'=>$dialog,
        ));
    }
}
